package com.yogurt.edu.controller;

import com.yogurt.utils.Result;
import org.springframework.web.bind.annotation.*;


/**
 * @Auther: 酸奶
 * @Date: 2020/07/05 15:42
 * @Description:
 */

@RestController
@RequestMapping("/eduservice/admin")
@CrossOrigin
public class adminController {

    @PostMapping("/login")
    public Result login(){
        return Result.ok().data("token","admin");
    }

    @GetMapping("/info")
    public Result getInfo(){                 //https://wpimg.wallstcn.com/f778738c-e4f8-4870-b634-56703b4acafe.gif
        return Result.ok().data("roles","user").data("name","admin").data("avatar","https://guli-eduproject.oss-cn-beijing.aliyuncs.com/xiaohuihui.jpg");
    }
}
